import request from '@/utils/request'

export function pageDeviceRecords(params) {
  return request({
    url: '/api/device-record/page-device-records',
    method: 'get',
    params: params
  })
}

export function addDeviceRecord(data) {
  return request({
    url: '/api/device-record/add-device-record',
    method: 'post',
    data
  })
}

export function updateDeviceRecord(data) {
  return request({
    url: '/api/device-record/update-device-record',
    method: 'post',
    data
  })
}

export function deleteDeviceRecord(id) {
  return request({
    url: '/api/device-record/delete-device-record/' + id,
    method: 'delete'
  })
}
